const cloud = require("@alipay/faas-server-sdk");
cloud.init({});
exports.main = async (event, context) => {
  const bizContent = {
    "bill_type": event.billType,
    "bill_date": event.billDate,
    "smid": event.smid
  };
  const res = await cloud.openapi.alipayDataDataserviceBillDownloadurlQuery.request({
    bizContent: JSON.stringify(bizContent)
  });
  console.log('云调用结果:', res);
  return res;
};